package Day3;

/**
 * @Author kalista
 * @Description
 * @Date 2020/11/5  11:03
 **/
public class Test2 {
    public static void main(String[] args) {


        int a = 0;
        // while循环： 先判断后执行
        while ( a < 0){
            int b = 20;
            System.out.println(a);
        }

        // do-while循环 先执行后判断
        do{
            System.out.println(a);
        }while (a < 0);



    }
}
